<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:forgeview="http://jboss.org/forge/view"
	template="/resources/scaffold/pageTemplate.xhtml">

	<f:metadata>
		<f:viewParam name="page" value="#{pcPurchaseReqBean.page}"/>
		<f:event type="preRenderView" listener="#{pcPurchaseReqBean.paginate}"/>
	</f:metadata>

	<ui:param name="pageTitle" value="Search Pc Purchase Req entities"/>

	<ui:define name="header">
		Pc Purchase Req
	</ui:define>

	<ui:define name="subheader">
		Search Pc Purchase Req entities
	</ui:define>

	<ui:define name="footer"/>

	<ui:define name="main">
		<h:form id="search">
			<f:validateBean disabled="true">
				<h:panelGroup styleClass="search">

					<h:panelGrid columnClasses="label,component,required" columns="3">
						<h:outputLabel for="pcPurchaseReqBeanExamplePrNo" value="Pr No:"/>
						<h:panelGroup>
							<h:inputText id="pcPurchaseReqBeanExamplePrNo" value="#{pcPurchaseReqBean.example.prNo}"/>
							<h:message for="pcPurchaseReqBeanExamplePrNo" styleClass="error"/>
						</h:panelGroup>
						<h:outputText/>
						<h:outputLabel for="pcPurchaseReqBeanExamplePcPurchaseReqStatus" value="Pc Purchase Req Status:"/>
						<h:panelGroup>
							<h:selectOneMenu converter="#{pcPurchaseReqStatusBean.converter}" id="pcPurchaseReqBeanExamplePcPurchaseReqStatus" value="#{pcPurchaseReqBean.example.pcPurchaseReqStatus}">
								<f:selectItem/>
								<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{pcPurchaseReqStatusBean.all}" var="_item"/>
							</h:selectOneMenu>
							<h:message for="pcPurchaseReqBeanExamplePcPurchaseReqStatus" styleClass="error"/>
						</h:panelGroup>
						<h:outputText/>
						<h:outputLabel for="pcPurchaseReqBeanExampleSysTermOfPayment" value="Sys Term Of Payment:"/>
						<h:panelGroup>
							<h:selectOneMenu converter="#{sysTermOfPaymentBean.converter}" id="pcPurchaseReqBeanExampleSysTermOfPayment" value="#{pcPurchaseReqBean.example.sysTermOfPayment}">
								<f:selectItem/>
								<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{sysTermOfPaymentBean.all}" var="_item"/>
							</h:selectOneMenu>
							<h:message for="pcPurchaseReqBeanExampleSysTermOfPayment" styleClass="error"/>
						</h:panelGroup>
						<h:outputText/>
						<h:outputLabel for="pcPurchaseReqBeanExampleMmSupplierType" value="Mm Supplier Type:"/>
						<h:panelGroup>
							<h:selectOneMenu converter="#{mmSupplierTypeBean.converter}" id="pcPurchaseReqBeanExampleMmSupplierType" value="#{pcPurchaseReqBean.example.mmSupplierType}">
								<f:selectItem/>
								<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{mmSupplierTypeBean.all}" var="_item"/>
							</h:selectOneMenu>
							<h:message for="pcPurchaseReqBeanExampleMmSupplierType" styleClass="error"/>
						</h:panelGroup>
						<h:outputText/>
						<h:outputLabel for="pcPurchaseReqBeanExampleMmSupplier" value="Mm Supplier:"/>
						<h:panelGroup>
							<h:selectOneMenu converter="#{mmSupplierBean.converter}" id="pcPurchaseReqBeanExampleMmSupplier" value="#{pcPurchaseReqBean.example.mmSupplier}">
								<f:selectItem/>
								<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{mmSupplierBean.all}" var="_item"/>
							</h:selectOneMenu>
							<h:message for="pcPurchaseReqBeanExampleMmSupplier" styleClass="error"/>
						</h:panelGroup>
						<h:outputText/>
					</h:panelGrid>
					<h:panelGroup styleClass="buttons">
						<h:commandLink value="Search" action="#{pcPurchaseReqBean.search}" styleClass="btn btn-primary"/>
						<h:commandLink value="Create New" action="#{pcPurchaseReqBean.create}" styleClass="btn btn-primary"/>
					</h:panelGroup>
				</h:panelGroup>
			</f:validateBean>
			
			<h:dataTable id="pcPurchaseReqBeanPageItems" styleClass="data-table" value="#{pcPurchaseReqBean.pageItems}" var="_item">
				<h:column>
					<f:facet name="header">
						<h:outputText value="Pr No"/>
					</f:facet>
					<h:link outcome="/pcPurchaseReq/view">
						<f:param name="id" value="#{_item.prNo}"/>
						<h:outputText id="itemPrNo" value="#{_item.prNo}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Pr Code"/>
					</f:facet>
					<h:link outcome="/pcPurchaseReq/view">
						<f:param name="id" value="#{_item.prNo}"/>
						<h:outputText id="itemPrCode" value="#{_item.prCode}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Pr Descr"/>
					</f:facet>
					<h:link outcome="/pcPurchaseReq/view">
						<f:param name="id" value="#{_item.prNo}"/>
						<h:outputText id="itemPrDescr" value="#{_item.prDescr}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Pr Date"/>
					</f:facet>
					<h:link outcome="/pcPurchaseReq/view">
						<f:param name="id" value="#{_item.prNo}"/>
						<h:outputText id="itemPrDate" value="#{_item.prDate}">
							<f:convertDateTime type="date"/>
						</h:outputText>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Pr Discount Perc"/>
					</f:facet>
					<h:link outcome="/pcPurchaseReq/view">
						<f:param name="id" value="#{_item.prNo}"/>
						<h:outputText id="itemPrDiscountPerc" value="#{_item.prDiscountPerc}"/>
					</h:link>
				</h:column>
			</h:dataTable>
			<ui:include src="/resources/scaffold/paginator.xhtml">
				<ui:param name="paginatorBean" value="#{pcPurchaseReqBean}"/>
			</ui:include>
		</h:form>
			
	</ui:define>

</ui:composition>
